package com.xu.commons.exception;

import com.xu.commons.model.ResultCode;

public class ApplicationException extends RuntimeException {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 7949213798679756188L;

	public static final String MESSAGE = "应用异常";
	
	protected int code = ResultCode.APPLICATION_ERROR;
	
	public ApplicationException(){
		super(MESSAGE);
	}
	
	public ApplicationException(String message){
		super(message);
	}
	
	public ApplicationException(int code, String message) {
		super(message);
		this.code = code;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}
	
}
